package com.yuexunit.finance.project.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.project.entity.lexicon.FileSignStateEnum;

/**
*@version 创建时间：2017年3月13日 下午2:48:39
*@author wenwenlong
*类说明
*/

@Entity
@Table(name = "FINANCE_FILES_INFO")
public class FinanceFilesInfoEntity {
	/**
	 * 融资附件ID
	 * */
	@Id
	@GeneratedValue
	@Column(name = "FILES_INFO_ID")
	private Long filesInfoId;
	
	/**
	 * 融资ID
	 * */
	@Column(name = "FINANCE_ID")
	private Long financeId;
	
	/**
	 * 提货ID
	 * */
	@Column(name = "PICKUP_ID")
	private Long pickupId;
	
	/**
	 * 附件UUID
	 * */
	@Column(name = "FILES_UUID")
	private String filesUuid;
	
	/**
	 * 融资附件标准ID
	 * */
	@Column(name = "NORM_ID")
	private Long normId;
	
	/**
	 * 附件名称
	 * */
	@Column(name = "NORM_FILE_NAME")
	private String normFileName;
	
	/**
	 * 是否必填
	 * */
	@Column(name="IS_NOT_NULL")
	private Integer isNotNull;
	
	/**
	 * 是否需要签署
	 * */
	@Column(name="IS_SIGN")
	private Integer isSign;
	
	/**
	 * 签署状态 0:未签署/1:客户已签署/2:平台已签署/3:已签署
	 * */
	@Column(name="FILE_SIGN_STATE")
	private FileSignStateEnum fileSignState;
	
	/** 融资合同ID */
	@Column(name = "FINANCE_CONTRACT_ID")
	private Long financeContractId;

	public Long getFinanceContractId() {
		return financeContractId;
	}

	public void setFinanceContractId(Long financeContractId) {
		this.financeContractId = financeContractId;
	}

	public Long getPickupId() {
		return pickupId;
	}

	public void setPickupId(Long pickupId) {
		this.pickupId = pickupId;
	}

	public FileSignStateEnum getFileSignState() {
		if (fileSignState == null) {
			return FileSignStateEnum.UNKNOWN;
		}
		return fileSignState;
	}

	public void setFileSignState(FileSignStateEnum fileSignState) {
		this.fileSignState = fileSignState;
	}

	public Integer getIsSign() {
		return isSign;
	}

	public void setIsSign(Integer isSign) {
		this.isSign = isSign;
	}

	public Long getFilesInfoId() {
		return filesInfoId;
	}

	public void setFilesInfoId(Long filesInfoId) {
		this.filesInfoId = filesInfoId;
	}

	public Long getFinanceId() {
		return financeId;
	}

	public void setFinanceId(Long financeId) {
		this.financeId = financeId;
	}

	public String getFilesUuid() {
		return filesUuid;
	}

	public void setFilesUuid(String filesUuid) {
		this.filesUuid = filesUuid;
	}

	public Long getNormId() {
		return normId;
	}

	public void setNormId(Long normId) {
		this.normId = normId;
	}

	public String getNormFileName() {
		return normFileName;
	}

	public void setNormFileName(String normFileName) {
		this.normFileName = normFileName;
	}

	public Integer getIsNotNull() {
		return isNotNull;
	}

	public void setIsNotNull(Integer isNotNull) {
		this.isNotNull = isNotNull;
	}
}
